﻿using System.Web;
using System.Web.Optimization;

namespace CTM.Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/jquery.unobtrusive*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/moment").Include(
                        "~/Scripts/moment.js"));

            bundles.Add(new ScriptBundle("~/bundles/typeahead").Include(
                        "~/Scripts/typeahead.bundle.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/bootstrap-datetimepicker.js",
                      "~/Scripts/bootstrap-treeview.js",
                      "~/Content/Libraries/bootstrap-tagsinput/bootstrap-tagsinput.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/bundles/morris").Include(
                      "~/Content/Libraries/morris/morris.js"));

            bundles.Add(new ScriptBundle("~/bundles/raphael").Include(
                      "~/Content/Libraries/raphael/raphael.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/bootstrap-datetimepicker.css",
                      "~/Content/Libraries/bootstrap-tagsinput/bootstrap-tagsinput.css",
                      "~/Content/Libraries/rbvh/css/rbvh-search-box.css",
                      "~/Content/Libraries/rbvh/css/rbvh-colors.css",
                      "~/Content/Libraries/rbvh/css/rbvh.css",
                      "~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/timeline").Include(
                      "~/Content/Libraries/timeliner/css/demo.css",
                      "~/Content/Libraries/timeliner/css/responsive.css"));

            bundles.Add(new StyleBundle("~/Content/morris").Include(
                      "~/Content/Libraries/morris/morris.css"));
        }
    }
}
